<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<meta name="author" content="SkyKiDS" />
		<meta name="keywords" content="browser, navigator, test" />
		<meta name="description" content="브라우저의 내장 객체인 navigator에 대해서 알아봅니다." />
		<title>Browser Test</title>
		<style type="text/css">
		<!--
			img {border:0;}
		// -->
		</style>
		<script type="text/javascript">
		<!-- <![CDATA[
// IE
			var strIE = "Internet Explorer";
			strIE += "<p>";
			strIE += "navigator.appCodeName: " + navigator.appCodeName + "<br />";
			strIE += "navigator.appMinorVersion: " + navigator.appMinorVersion + "<br />";
			strIE += "navigator.appName: " + navigator.appName + "<br />";
			strIE += "navigator.appVersion: " + navigator.appVersion + "<br />";
			strIE += "navigator.browserLanguage: " + navigator.browserLanguage + "<br />";
			strIE += "navigator.cookieEnabled: " + navigator.cookieEnabled + "<br />";
			strIE += "navigator.cpuClass: " + navigator.cpuClass + "<br />";
			strIE += "navigator.onLine: " + navigator.onLine + "<br />";
			strIE += "navigator.platform: " + navigator.platform + "<br />";
			strIE += "navigator.systemLanguage: " + navigator.systemLanguage + "<br />";
			strIE += "navigator.userAgent: " + navigator.userAgent + "<br />";
			strIE += "navigator.userLanguage: " + navigator.userLanguage + "<br />";
			strIE += "</p>";
			strIE += "<p>";
			strIE += "navigator.javaEnabled(): " + navigator.javaEnabled() + "<br />";
			strIE += "navigator.taintEnabled(): " + navigator.taintEnabled() + "<br />";
			strIE += "</p>";
			strIE += "<p>";
			strIE += "navigator.plugins.length: " + navigator.plugins.length + "<br />";
			for(var j = 0; j < navigator.plugins.length; j++) {
				strIE += "navigator.plugins.item(" + j + ").name: " + navigator.plugins.item(j).name + "<br />";
				strIE += "navigator.plugins.item(" + j + ").filename: " + navigator.plugins.item(j).filename + "<br />";
				strIE += "navigator.plugins.item(" + j + ").description: " + navigator.plugins.item(j).description + "<br />";
			}
//				strIE += "navigator.plugins.namedItem(" + j + "): " + navigator.plugins.namedItem(j) + "<br />";
//				strIE += "navigator.plugins.tags(): " + navigator.plugins.tags() + "<br />";
			strIE += "navigator.mimeTypes.length: " + navigator.mimeTypes.length + "<br />";
			for(var i = 0; i < navigator.mimeTypes.length; i++) {
				strIE += "navigator.mimeTypes.item(" + i + ").description: " + navigator.mimeTypes.item(i).description + "<br />";
				strIE += "navigator.mimeTypes.item(" + i + ").type: " + navigator.mimeTypes.item(i).type + "<br />";
			}
			strIE += "</p>";
			strIE += "<p>";
//			strIE += "navigator.userProfile.addReadRequest(): " + navigator.userProfile.addReadRequest() + "<br />";
//			strIE += "navigator.userProfile.clearRequest(): " + navigator.userProfile.clearRequest() + "<br />";
//			strIE += "navigator.userProfile.doReadRequest(): " + navigator.userProfile.doReadRequest() + "<br />";
//			strIE += "navigator.userProfile.getAttribute(): " + navigator.userProfile.getAttribute() + "<br />";
//			strIE += "navigator.userProfile.setAttribute(): " + navigator.userProfile.setAttribute() + "<br />";
			strIE += "</p>";

// FF
			var strFF = "Firefox";
			strFF += "<p>";
			strFF += "navigator.appCodeName: " + navigator.appCodeName + "<br />";
			strFF += "navigator.appName: " + navigator.appName + "<br />";
			strFF += "navigator.appVersion: " + navigator.appVersion + "<br />";
			strFF += "navigator.buildID: " + navigator.buildID + "<br />";
			strFF += "navigator.cookieEnabled: " + navigator.cookieEnabled + "<br />";
			strFF += "navigator.language: " + navigator.language + "<br />";
			strFF += "navigator.mimeTypes: " + navigator.mimeTypes + "<br />";
			strFF += "navigator.onLine: " + navigator.onLine + "<br />";
			strFF += "navigator.oscpu: " + navigator.oscpu + "<br />";
			strFF += "navigator.platform: " + navigator.platform + "<br />";
			strFF += "navigator.plugins: " + navigator.plugins + "<br />";
			strFF += "navigator.product: " + navigator.product + "<br />";
			strFF += "navigator.productSub: " + navigator.productSub + "<br />";
			strFF += "navigator.securityPolicy: " + navigator.securityPolicy + "<br />";
			strFF += "navigator.userAgent: " + navigator.userAgent + "<br />";;
			strFF += "navigator.vendor: " + navigator.vendor + "<br />";
			strFF += "navigator.vendorSub: " + navigator.vendorSub + "<br />";
			strFF += "</p>";
			strFF += "<p>";
			strFF += "navigator.javaEnabled(): " + navigator.javaEnabled() + "<br />";
//			strFF += "navigator.isLocallyAvailable(): " + navigator.isLocallyAvailable() + "<br />";
//			strFF += "navigator.preference(): " + navigator.preference () + "<br />";
//			strFF += "navigator.registerContentHandler(): " + navigator.registerContentHandler() + "<br />";
//			strFF += "navigator.registerProtocolHandler(): " + navigator.registerProtocolHandler() + "<br />";
			strFF += "navigator.taintEnabled(): " + navigator.taintEnabled() + "<br />";
			strFF += "</p>";
			strFF += "<p>";
			strFF += "navigator.plugins.length: " + navigator.plugins.length + "<br />";
			for(var k = 0; k < navigator.plugins.length; k++) {
				strFF += "navigator.plugins.item(" + k + ").name: " + navigator.plugins[k].name + "<br />";
				strFF += "navigator.plugins.item(" + k + ").filename: " + navigator.plugins[k].filename + "<br />";
				strFF += "navigator.plugins.item(" + k + ").description: " + navigator.plugins[k].description + "<br />";
			}
//				strFF += "navigator.plugins[" + k + "].name: " + navigator.plugins[k].item().name + "<br />";
//				strFF += "navigator.plugins[" + k + "].namedItem(): " + navigator.plugins.namedItem(k) + "<br />";
			strFF += "navigator.mimeTypes.length: " + navigator.mimeTypes.length + "<br />";
			for(var l = 0; l < navigator.mimeTypes.length; l++) {
				strFF += "navigator.mimeTypes.item[" + l + "].description: " + navigator.mimeTypes[l].description + "<br />";
				strFF += "navigator.mimeTypes[" + l + "].type: " + navigator.mimeTypes[l].type + "<br />";
			}
			strFF += "</p>";
		// ]]> -->
		</script>
	</head>
	<body>
<div id="result">정보를 읽고 있는 중입니다.</div>
	<script type="text/javascript">
	<!-- <![CDATA[
		if (new RegExp(/Firefox/).test(navigator.userAgent)) {
			document.getElementById("result").innerHTML = strFF;
		}
		else if (new RegExp(/MSIE/).test(navigator.userAgent)) {
			document.getElementById("result").innerHTML = strIE;
		}
		else {
			document.getElementById("result").style.visibility = "hidden";
		}
	// ]]> -->
	</script>
<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a></p>
	</body>
</html>

